//
//  NSObject+hr_calculate.m
//  Masonry-Exploration
//
//  Created by John on 2018/5/3.
//  Copyright © 2018年 HR Inc. All rights reserved.
//

#import "NSObject+hr_calculate.h"
#import "Calculator.h"

@implementation NSObject (hr_calculate)

+(int)hr_calculate:(void (^)(Calculator *))block
{
    Calculator *cal = [[Calculator alloc]init];
    block(cal);
    return cal.result;
}

@end

//参考：http://www.mamicode.com/info-detail-1338493.html

//相当于MasContraintMaker的作用

